//
//  ChooseDoctorCell.m
//  QuickCure1
//
//  Created by apple on 2016/10/31.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "ChooseDoctorCell.h"
#import <UIImageView+WebCache.h>
#import "ChooseDoctorModel.h"

@interface ChooseDoctorCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageDotor;
@property (weak, nonatomic) IBOutlet UILabel *labelName;
@property (weak, nonatomic) IBOutlet UILabel *dotorTitle;
@property (weak, nonatomic) IBOutlet UILabel *hospitalName;
@property (weak, nonatomic) IBOutlet UILabel *labelOperationCount;
@property (weak, nonatomic) IBOutlet UILabel *labelFlower;
@property (weak, nonatomic) IBOutlet UILabel *labelBanner;

@end


@implementation ChooseDoctorCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}


#pragma mark
#pragma mark - 重写model 的 set 方法
- (void)setModel7:(ChooseDoctorModel *)model7{
    
    _model7 = model7;
    [self.imageDotor sd_setImageWithURL:[NSURL URLWithString:model7.doctor_portrait]];
    self.labelName.text = model7.doctor_name;
    self.dotorTitle.text = model7.doctor_title_name;
    self.hospitalName.text = model7.doctor_hospital_name;
    self.labelOperationCount.text = model7.operation_count;
    self.labelFlower.text = [NSString stringWithFormat:@"%zd",[model7.flower integerValue]];
    self.labelBanner.text = [NSString stringWithFormat:@"%zd",[model7.banner integerValue]];

}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}




@end
